package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.UserBean;

import java.time.LocalDate;
import java.util.List;

public interface IUserService {
    public int PAGESIZE = 3;
    public void add(UserBean user);
    public void del(int id);
    public void update(int id,String pwd);
    public UserBean findById(int id);
    public List<UserBean> findAll();
    public List<UserBean> findByName(String name);
    public List<UserBean> searchName(String name);
    public List<UserBean> findByItem(String name,
            LocalDate startDate,LocalDate endDate);
    public IPage<UserBean> cutAll(int pageNO);

    public IPage<UserBean> cutByItem(int pageNO,
           String name,Integer startMoney,Integer endMoney );
}
